package com.ruoyi.credit.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 信用评价任务计划对象 eva_task
 *
 * @author zhulei
 * @date 2022-03-10
 */
public class EvaTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务id */
    private Long taskId;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String taskName;

    /** 合同收支类别 */
    @Excel(name = "合同收支类别")
    private String contractClass;

    /** 合同类型 */
    @Excel(name = "合同类型")
    private String contractType;

    /** 状态（0未发布 1已发布 2已完成） */
    @Excel(name = "状态", readConverterExp = "0=未发布,1=已发布,2=已完成")
    private String status;

    /** 年份 */
    @Excel(name = "年份")
    private String taskYear;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 发起部门id */
    private Long createDeptId;

    /** 更新部门id */
    private Long updateDeptId;

    /**
     * 任务部门列表
     */
    private List<EvaTaskDept> taskDeptList;

    /**
     * 任务合同列表
     */
    private List<EvaTaskContract> taskContractList;

    public List<EvaTaskDept> getTaskDeptList() {
        return taskDeptList;
    }

    public void setTaskDeptList(List<EvaTaskDept> taskDeptList) {
        this.taskDeptList = taskDeptList;
    }

    public List<EvaTaskContract> getTaskContractList() {
        return taskContractList;
    }

    public void setTaskContractList(List<EvaTaskContract> taskContractList) {
        this.taskContractList = taskContractList;
    }

    public void setTaskId(Long taskId)
    {
        this.taskId = taskId;
    }

    public Long getTaskId()
    {
        return taskId;
    }
    public void setTaskName(String taskName)
    {
        this.taskName = taskName;
    }

    public String getTaskName()
    {
        return taskName;
    }
    public void setContractClass(String contractClass)
    {
        this.contractClass = contractClass;
    }

    public String getContractClass()
    {
        return contractClass;
    }
    public void setContractType(String contractType)
    {
        this.contractType = contractType;
    }

    public String getContractType()
    {
        return contractType;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setTaskYear(String taskYear)
    {
        this.taskYear = taskYear;
    }

    public String getTaskYear()
    {
        return taskYear;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setCreateDeptId(Long createDeptId)
    {
        this.createDeptId = createDeptId;
    }

    public Long getCreateDeptId()
    {
        return createDeptId;
    }
    public void setUpdateDeptId(Long updateDeptId)
    {
        this.updateDeptId = updateDeptId;
    }

    public Long getUpdateDeptId()
    {
        return updateDeptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("taskId", getTaskId())
            .append("taskName", getTaskName())
            .append("contractClass", getContractClass())
            .append("contractType", getContractType())
            .append("status", getStatus())
            .append("taskYear", getTaskYear())
            .append("delFlag", getDelFlag())
            .append("createDeptId", getCreateDeptId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateDeptId", getUpdateDeptId())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
